<?xml version='1.0' encoding='ISO-8859-1' ?>
<ui:composition template="/templates/padrao.xhtml"
     xmlns="http://www.w3.org/1999/xhtml"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:p="http://primefaces.org/ui" 
     xmlns:c="http://java.sun.com/jsp/jstl/core">
     
	<ui:define name="centro">
                                
	      <h:form styleClass="loginPanelStyle">
	         <p:growl id="msgs" showDetail="true" sticky="false" />
	        	                                     
			<p:panelGrid columns="1">							
	             #{msg.principalTitulo}
	             <c:if test="#{loginController.username == 'Admin'}"> 
	             	<h:graphicImage url="/resources/imagens/adm-icon.png" />
	             </c:if>
	             <c:if test="#{loginController.username == 'User'}"> 
	             	<h:graphicImage url="/resources/imagens/user-icon.png" 
	             	style="margin:2px;width:96px;height:96px"/>
	             </c:if>
	             <c:if test="#{loginController.username == 'Manager'}"> 
	             	<h:graphicImage url="/resources/imagens/manager-icon.png" />
	             </c:if>
	             
	             <h:outputText value="#{msg.principalUsuario}: #{loginController.username}"></h:outputText>
	        </p:panelGrid>
	    </h:form>                                
	</ui:define>
     
</ui:composition>